QT       += core gui sql

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# OPENCVPATH = D:/desktop/CS2514-QT/opencv4.5.5-win
# OPENCVPATH = D:/desktop/Qt/FaceDetector/opencv_mingw32
#windows
win32: OPENCVPATH = D:/desktop/Qt/FaceDetector/opencv_mingw32

win32: INCLUDEPATH += $${OPENCVPATH}/include/

win32: LIBS += -L$${OPENCVPATH}/x64/mingw/bin  -lopencv_core455 -lopencv_objdetect455   \
       -lopencv_imgproc455   -lopencv_imgcodecs455 -lopencv_videoio455 -lopencv_highgui455    \
       -lopencv_imgcodecs455

#linux
unix:linux: INCLUDEPATH += /usr/local/include/opencv4/
unix:linux: LIBS += -L /home/china/opencv-linux/lib -lopencv_core -lopencv_objdetect -lopencv_imgproc -lopencv_imgcodecs -lopencv_videoio -lopencv_highgui


# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    adminui.cpp \
    login.cpp \
    main.cpp \
    facedetector.cpp \
    userdb.cpp

HEADERS += \
    adminui.h \
    facedetector.h \
    login.h \
    userdb.h

FORMS += \
    adminui.ui \
    facedetector.ui \
    login.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

DISTFILES += \
    readme

RESOURCES += \
    res.qrc
